/*
 ============================================================================
 Page	     : 379
 Name        : forc99.c
 Date	     : 20210406
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 新的C99块规则
 ============================================================================
 */

#include <stdio.h>
int main(void)
{
	int n = 8;

	printf("   Initially, n = %d at %p\n", n, &n);
	for(int n = 1; n < 3;n++)
	{
		printf("      loop 1: n = %d at %p\n", n, &n);
	}
	printf(" After loop1, n = %d at %p\n", n, &n);
	for(int n = 1; n < 3; n++)
	{
		printf("  loop2 index n = %d at %p\n", n, &n);
		int n = 6;
		printf("      loop 2: n = %d at %p\n", n, &n);
		n++;
	}
	printf("After loop 2, n = %d at %p\n", n, &n);

	return 0;
}

